package com.bingquan.componey.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(name = "feign-client")
public interface TokenFeign {

    @GetMapping("/check/token")
    String getUserId(@RequestHeader("token") String token);
}
